import { createElement, createTextNode, mount,patch } from './vdom';
const oldVnode = createTextNode('hello');
const app = document.querySelector('#app');
mount(app, oldVnode);
document.querySelector('#differentText').addEventListener('click', () => {
    const newVnode = createTextNode('world');
    patch(oldVnode,newVnode);
});